<script type="text/javascript" src="source/plugin/dzapp_base/static/js/upload_{CHARSET}.js?{VERHASH}"></script>
<iframe name="attachframe" id="attachframe" style="display: none;"></iframe>
<script type="text/javascript">
var upload = new SWFUpload({
	upload_url: "{$_G[siteurl]}plugin.php?id=dzapp_base&mod=pic&shop_id=$_G[shop_id]&type=$swfconfig[type]&field=$swfconfig[field]&cover=$swfconfig[cover]",
	post_params: {"uid" : "$_G[uid]", "hash":"$swfconfig[hash]"},
	file_size_limit : "$swfconfig[max]",
	file_types : "$swfconfig[imageexts][ext]",
	file_types_description : "$swfconfig[imageexts][depict]",
	file_upload_limit : 0,
	file_queue_limit : 0,
	swfupload_preload_handler : preLoad,
	swfupload_load_failed_handler : loadFailed,
	file_dialog_start_handler : fileDialogStart,
	file_queued_handler : fileQueued,
	file_queue_error_handler : fileQueueError,
	file_dialog_complete_handler : fileDialogComplete,
	upload_start_handler : uploadStart,
	upload_progress_handler : uploadProgress,
	upload_error_handler : uploadError,
	upload_success_handler : uploadSuccess,
	upload_complete_handler : uploadComplete,
	button_image_url : "{IMGDIR}/upload.png",
	button_placeholder_id : "imageSpanButtonPlaceholder",
	button_width: 120,
	button_height: 120,
	button_cursor:SWFUpload.CURSOR.HAND,
	button_window_mode: "transparent",
	custom_settings : {
		progressTarget : "imageUploadProgress",
		uploadSource: 'home',
		uploadType: 'album',
		imgBoxObj: $('attachbody')
	},
	debug: false
});
</script>